<?
    if ($this->pages) 
    {
?>
<div class="pagination top"><?=$this->pages;?></div>
<?
    }

$numRows = sizeof($this->users);
if ($numRows) {
?>
<table width="100%" cellspacing="0" cellpadding="0" class="edit_block">
	<tr>
		<th width="20%" class="first">Логин</th>
		<th width="30%">Имя</th>
		<th>Группа</th>
		<th width="1">&nbsp;</th>
		<th width="1" class="last">&nbsp;</th>
	</tr>
<?
    while (list(, $user) = each($this->users)) {
        ?>
	  <tr>
		<td class="first title"><?=$user->GetUserName();?></td>
		<td class="title"><?=$user->GetFullName();?></td>
		<td><?=$user->GetGroupName();?></td>
		<td><a
			href="<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'users', 'action' => 'add_user', 'id' => $user->GetUserId()));?>"
			title="редактировать"><img
			src="<?=_ROOT_URL;?>files/images/admin/edit_edit.gif" alt="edit"
			title="" width="30" height="11"></a></td>
		<td class="last"><a
			href="<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'users', 'action' => 'del_user', 'id' => $user->GetUserId()));?>"
			title="Удалить юзера?" class="del"><img
			src="<?=_ROOT_URL;?>files/images/admin/edit_close.gif" alt="close"
			title="" width="9" height="11"></a></td>
	</tr>
<?
    }
    ?>
 </table>
<?
} else {
    ?>
	нет юзеров
<?
}

    if ($this->pages) 
    {
?>
<div class="pagination"><?=$this->pages;?></div>
<?
    }
?>    
<div class="bt_area"><input type="button" class="bt" value="Добавить"
	onclick="window.location.href='<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'users', 'action' => 'add_user'));?>';" />
</div>